function getParamByKey(Key){
    var params = location.search;
    params = params.substring(1);// 去掉前面"?"
    var paramArr = params.split("&");
    if(paramArr != null && paramArr.length >0){
       for(var i = 0;i<paramArr.length;i++){
        var item = paramArr[i];
        var itemArr = item.split("=");
        if(itemArr.length==2&& itemArr[0]==Key){
            return itemArr[1];
        }
       }
    }
    return null;
}


